package com.elective.courseselect.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elective.courseselect.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * 
 * 
 * @author lee
 * @email 943204006@qq.ccom
 * @date 2021-09-04 15:25:05
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {

    Integer insertUser (UserEntity userEntity);

    Integer getMaxAccountByRole(@Param("role") Integer role);

    Integer getMaxAccount();

    void changeStartIncrementVal(@Param("createStartId") Integer createStartId);

    void delBatchAccount(@Param("userIds") Integer[] userIds);
}
